/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Connection;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author 2930682
 */
public class Main {
    public static void main(String[] args) 
    {
        try
        {
            DataHandler dh = new DataHandler();
            ResultSet rs = null;
            
            rs = dh.getProducts();

            rs.last();
            System.out.println(rs.getRow());
        }
        catch(SQLException sqlExp)
        {
            System.out.println(sqlExp.getMessage());
        }
    }
}
